<?php
/**
 * @package WordPress Themes
 * @subpackage Tencent CDC Theme
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
<?
/* do_action函数 用以执行 wp_head 的 Function */
do_action('wp_head')
?>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta content="<?php bloginfo('description'); ?>" name="description">
<meta content="<?php echo $tag = wp_tag_cloud('format=array' );?> " name="keywords">
<meta name="author" content="张赢" />
<meta name="Copyright" content="Copyright 2009 <?php bloginfo('name'); ?>" />
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel='index' title='<?php bloginfo('name'); ?>' href='<?php bloginfo('url'); ?>' />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<style>
<!-- 加入了自动判断时间代码，根据北京时间来变换头部图片 -->
<?php
date_default_timezone_set(PRC);
$logotime=date(H);
if ($logotime>=7 && $logotime<19) {
	$headerbg="bg1.jpg";
	$headerbg_line="bg1_line.jpg";
	}
	else {
	$headerbg="2009_cdcat.jpg";
	$headerbg_line="2009_cdcat_line.jpg";
	}
?>
html, body{
 background:white url('<?php bloginfo('template_directory'); ?>/images/<?php echo $headerbg_line; ?>') repeat-x 0 0 ;
}
#header {
background:url('<?php bloginfo('template_directory'); ?>/images/<?php echo $headerbg; ?>');
}
#footer {
 background:transparent url('<?php bloginfo('template_directory'); ?>/images/footer.jpg') repeat-x 0 0;"; }
<!-- 自动判断时间代码结束 -->
</style>
</head>

<body>
<div id="wrapper">
<div id="header">
	<div id="logo"><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"></a></div>
	<div id="menu" class="clear" style="padding-left: 275px;">
		<ul>
			<?php wp_list_categories('title_li='); ?>
			<?php wp_list_pages('title_li='); ?>
		</ul>
	</div> 
</div>
 <!--end header-->